package com.futu.scenicspot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.futu.scenicspot.domain.HPlayProject;
import com.futu.scenicspot.service.HPlayProjectService;
import com.futu.scenicspot.mapper.HPlayProjectMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 86177
* @description 针对表【h_play_project(景点游玩项目表)】的数据库操作Service实现
* @createDate 2025-06-10 17:37:11
*/
@Service
public class HPlayProjectServiceImpl extends ServiceImpl<HPlayProjectMapper, HPlayProject>
    implements HPlayProjectService{

    @Override
    public List<HPlayProject> findBySpot(Long spotId) {
        System.err.println("spotId:"+spotId);
        QueryWrapper<HPlayProject> wrapper=new QueryWrapper<>();
        System.err.println("这是卡片内容");
        wrapper.eq("scenic_id",spotId);
       List<HPlayProject> hPlayProjects = this.baseMapper.selectList(wrapper);
        System.err.println(hPlayProjects);
        return hPlayProjects ;
    }
}




